package com.johnny.xia.util.exception;

/**
 * 自定义异常，
 * @author johnny.xia
 *
 */
public class JohnnyException extends RuntimeException{

	private static final long serialVersionUID = 9075757515867398515L;

	/** 异常编码 */
	private String 	code;
	
	/** 异常消息 */
	private String	message;
	
	public JohnnyException() {
		super();
	}

	public JohnnyException(String message) {
		super();
		this.message = message;
	}

	public JohnnyException(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
